Documents

Documents enable you to expand an agent’s knowledge and its ground responses by adding information from attached files or HTTP/HTTPS URLs.

AI Agents framework supports the following methods of working with documents

For more details, see Using documents.

Parsing documents

For RAG (Retrieval-Augmented Generation) processing, documents must be split into smaller, manageable chunks to ensure efficient retrieval and accurate context handling. Each chunk should contain a coherent piece of information, typically a few hundred words, so the model can understand it in isolation. Properly chunked documents improve retrieval relevance and help the LLM generate more precise and consistent responses.

LiveHub AI Agents parses documents using the following pipeline:

In addition to the chunking pipeline, LiveHub AI Agents retain the original document in Markdown format to support “full content” working modes, allowing the agent to access the complete source when needed.